package com.lanou.dormitory.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;


import com.lanou.dormitory.entity.Admin;

public interface AdminMapper {

	public Admin login(@Param("username")String username,@Param("password")String password);
	
	public void update(Admin admin);
	
	public void updatePwd(@Param("adminid")Integer adminid,@Param("newpwd")String newpwd);
	
	public List<Admin> getAll();
	
	public Admin getQueryByUserName(@Param("username")String username);
	
	public void addAdmin(Admin admin);
	
    public Admin getAdminById(@Param("adminid")Integer adminid);
	
	public void update2(Admin admin);
	
	public void deleteById(@Param("adminid")Integer adminid);
}
